home *** CD-ROM | disk | FTP | other *** search
- # This is a sample `make.ini' file for NDMAKE v3.0. You will probably want
- # to customize it for your system.
-
- # Print the `make -h' message
- .HELP
-
- # The order to search for rules and files is specified by .SUFFIXES
- .SUFFIXES : .exe .obj .c .for .asm
-
- # A few macros.
- CFLAGS = -A$(MODEL)
- MODEL = S
- LIBS = # none yet
-
- # DEFAULT RULES
- # To produce a `.obj' file from a `.asm' file.
- .asm.obj:; masm $*.asm;
-
- # To produce a `.obj' file from a `.c' file.
- .c.obj:; cl $(CFLAGS) -c $*.c
-
- # To produce a `.obj' file from a `.for' file.
- .for.obj:
- for1 $*.for;
- pas2
-
- # To produce a `.exe' file from an `.obj' file. Note that there is a
- # problem because LIBS may be different for linking `.obj' files
- # produced by different compilers (C, FORTRAN, PASCAL, etc). To avoid
- # this problem you may want to have the C compiler produce `.cbj' files,
- # the FORTRAN compiler produce `.fbj' files, etc. Then you could write
- # specific rules for `.cbj.exe' and `.fbj.exe' which would use the correct
- # libraries.
- .obj.exe:; link $*.obj, $@, nul, $(LIBS)
-
- # To produce a `.exe' file from a `.asm' file.
- .asm.exe:
- masm $*.asm;
- link $*.obj, $@, nul, $(LIBS)
- erase $*.obj
-
- # To produce a `.exe' file from a `.c' file.
- .c.exe:
- cl $(CFLAGS) -c $*.c
- link $*.obj, $@;
- erase $*.obj
-
- # To produce a `.exe' file from a `.for' file.
- .for.exe:
- for1 $*.for;
- pas2
- link $*.obj, $@, nul, $(LIB)\FORTRAN.LIB
- erase $*.obj
-